﻿// Utilities/JsonUtils.cs

using System;
using System.Text.Json;

namespace DatabaseManager.Utilities
{
    public static class JsonUtils
    {
        public static string Serialize<T>(T obj) =>
            JsonSerializer.Serialize(obj);

        public static T Deserialize<T>(string json) =>
            JsonSerializer.Deserialize<T>(json);
    }
}